package autoload

import (
	"gitee.com/csingo/cServer"
	assetfs "github.com/elazarl/go-bindata-assetfs"
	"satis-go/resource"
)

func InjectView() {
	cServer.InjectView("js", &assetfs.AssetFS{
		Asset:     resource.Asset,
		AssetDir:  resource.AssetDir,
		AssetInfo: nil,
		Prefix:    "resource/html/js",
		Fallback:  "",
	})
	cServer.InjectView("css", &assetfs.AssetFS{
		Asset:     resource.Asset,
		AssetDir:  resource.AssetDir,
		AssetInfo: nil,
		Prefix:    "resource/html/css",
		Fallback:  "",
	})
	cServer.InjectView("fonts", &assetfs.AssetFS{
		Asset:     resource.Asset,
		AssetDir:  resource.AssetDir,
		AssetInfo: nil,
		Prefix:    "resource/html/fonts",
		Fallback:  "",
	})
}
